package android.FiltrosJava;

public class MinusBrightFilter extends PointFilter{
	protected int valor_ajuste;
	public MinusBrightFilter(){
		int ajuste= -10;
		setBright(ajuste);				
	}
	public void setBright(int ajuste){
		this.valor_ajuste = ajuste;
	}
	
	
	
	public int[] computeFilter(int px, int py, int[] imageData){
				
		for ( int y = 0; y < 3; y++ ) {
			imageData[y] = delimitaCor(imageData[y] + this.valor_ajuste);			
		}
		return imageData;
	}
	@Override
	public int[] applyFilter(int[] pixels) {
		// TODO Auto-generated method stub
		return null;
	}
	
}